package com.youth.feign.commodity;

import com.youth.entity.PageBean;
import com.youth.entity.vo.CommodityVO;
import com.youth.result.ResultBean;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName CommoodityFallback
 * @Description: TODO
 * @Author yjwu
 * @Date 2019/10/31 21:42
 **/
@Component
public class CommodityFeignFallback implements CommodityFeign {

    @Override
    public ResultBean add(CommodityVO commodityVO) {
        return ResultBean.returnNetWorkBusyMsg();
    }

    @Override
    public ResultBean addByExcel(MultipartFile excel) {
        return ResultBean.returnNetWorkBusyMsg();
    }

    @Override
    public ResultBean delete(String code) {
        return ResultBean.returnNetWorkBusyMsg();
    }

    @Override
    public ResultBean edit(CommodityVO commodityVO) {
        return ResultBean.returnNetWorkBusyMsg();
    }

    @Override
    public ResultBean decreaseStockNumber(String code, Integer soldNumber) {
        return null;
    }

    @Override
    public ResultBean findByCode(String code) {
        return null;
    }

    @Override
    public ResultBean findWithConditions(PageBean pageBean) {
        return null;
    }
}